package active.state.lottery;

public class NoLotteryState implements LotteryState {

    LotteryActivity lotteryActivity;

    public NoLotteryState(LotteryActivity lotteryActivity) {
        this.lotteryActivity = lotteryActivity;
    }

    @Override
    public void deductMoney() {
        System.out.println("扣除50积分成功,您可以抽奖了");
        // 可抽奖状态
        lotteryActivity.setLotteryState(lotteryActivity.getCanLotteryState());
    }

    @Override
    public boolean lotteryDraw() {
        System.out.println("扣了积分才能抽奖");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("不能发放奖品");
    }
}
